package com.zty.redis.init;

import org.springframework.stereotype.Component;

/**
 * @Author ZTY
 * @Description 项目启动Redis自动预热缓存
 * @Date 3:30 2023-12-13
 **/

@Component
public abstract class AbstractCache {

    public void initCache(){}

    public <T> T getCache(String key){return null;}

    public void clearCache(){}

    public void reloadCache(){
        this.clearCache();
        this.initCache();
    }

}
